//
//  AccountDetailViewController.m
//  WangLottery
//
//  Created by 黄修勇 on 12-5-20.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "AccountDetailViewController.h"
#import "XXButonSegment.h"

@interface AccountDetailViewController ()

@end

@implementation AccountDetailViewController

@synthesize detailTableView=_detailTableView;

-(void)dealloc{

    [_detailTableView release];
    [super dealloc];
}

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    self.title=@"账户明细";
    
    NSArray *array=[[NSArray alloc]initWithObjects:@"全 部",@"投 注",@"派 奖",@"充 值",@"提 现", nil];
    XXButonSegment *segment=[[XXButonSegment alloc]initwithItem:array];
    segment.backgroundColor=[UIColor clearColor];
    segment.frame=CGRectMake(10.0f, 20.0f, self.view.frame.size.width-20, 25.0f);
    segment.itemMargin=7.0f;
    [segment addTarget:self action:@selector(segmentChange:) forControlEvents:UIControlEventValueChanged];
    [self.view addSubview:segment];
    [segment release];
    [array release];
    
    // Do any additional setup after loading the view from its nib.
}



- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}


-(void)segmentChange:(XXButonSegment *)segemengt{

    
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{

    return 0;
}
@end
